import java.util.ArrayList;


public class Trainer implements User{
	String firstName, lastName, middleInit;
	ArrayList<Pokemon> myPokemon;
	
	public Trainer(String myFirstName, String myLastName, String myMiddleInit){
		firstName = myFirstName;
		lastName = myLastName;
		middleInit = myMiddleInit;
	}
	public void addPokemon(String type, String name, int baseHP, int HPModifier, int level){
		myPokemon.add(new Pokemon(type,name,baseHP,HPModifier,level));
	}
	public boolean removePokemon(Pokemon thePokemon){
		if (!myPokemon.contains(thePokemon)){
			return false;
		}
		else{
			myPokemon.remove(thePokemon);
			return true;
		}
		
	}
	public String getFirstName() {
		// TODO Auto-generated method stub
		return firstName;
	}
	public String getLastName(){
		return lastName;
	}
	public String getMiddleInit(){
		return middleInit;
	}
	@Override
	public UserTypes getType() {
		// TODO Auto-generated method stub
		return UserTypes.TRAINER;
	}
	@Override
	public Appointment createAppointment(Day day, Month month, Time time,
			Trainer trainer, Nurse nurse, Professor prof,
			ArrayList<Pokemon> pokemon) {
		// TODO Auto-generated method stub
		Appointment a = new Appointment(trainer,nurse,prof,pokemon,time,day,month);
		day.addAppointment(a);
		return a;
	}
}
